// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init()

const db=cloud.database()
const _ = db.command

// 云函数入口函数
exports.main = async (event, context) => {
   return await db.collection('gift').doc(event.id).update({
       data:{
        admin_send:event.admin_send,
        user_send:event.user_send,
        time2:event.time2,
        time3:event.time3,
        complete:event.complete,
        receiveComplete:event.receiveComplete,
        imageUrl: event.imageUrl,
        samplingTime: event.samplingTime,
        place: event.place,
        people: event.people
       }
   })
}